package com.vcredit.creditcat.dto.product.h5;

import java.io.Serializable;

import javax.validation.constraints.Min;

import org.hibernate.validator.constraints.Length;


public class TryCalculateParamDto implements Serializable {

	private static final long serialVersionUID = -1067917067234904619L;

	@Min(value = 100, message = "金额不正确")
	private Long amount; 
	
	@Min(value = 1, message = "期数不正确")
	private Integer peroid;
	
	@Length(min = 1, max = 1, message = "单位错误")
	private String unit; // 期限单位

	public Long getAmount() {
		return amount;
	}

	public void setAmount(Long amount) {
		this.amount = amount;
	}

	public Integer getPeroid() {
		return peroid;
	}

	public void setPeroid(Integer peroid) {
		this.peroid = peroid;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

}
